package com.vimi8.ebb.auth.model;

import java.util.Objects;

import io.swagger.annotations.ApiModelProperty;




/**
 * Organization
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-17T14:15:48.275Z")

public class Organization extends OrganizationClass  {
  private String clientId = null;

  private String orgClass = null;

  private String orgCorp = null;

  private String orgName = null;

  private String orgDescription = null;

  private String addressCode = null;

  private String addressDetail = null;

  private Integer createTime = null;

  private Integer updateTime = null;

  private String orgImages=null;

  public String getOrgImages() {
    return orgImages;
  }

  public void setOrgImages(String orgImages) {
    this.orgImages = orgImages;
  }

  private String remark;

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public Organization clientId(String clientId) {
    this.clientId = clientId;
    return this;
  }

   /**
   * 组织ID(也是客服端id).
   * @return clientId
  **/
  @ApiModelProperty(value = "组织ID(也是客服端id).")
  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public Organization orgClass(String orgClass) {
    this.orgClass = orgClass;
    return this;
  }

   /**
   * 组织分类(农场组织：org_type_farm,集体经济组织：org_type_collective,服务站点：org_type_sit).
   * @return orgClass
  **/
  @ApiModelProperty(value = "组织分类(农场组织：org_type_farm,集体经济组织：org_type_collective,服务站点：org_type_sit).")
  public String getOrgClass() {
    return orgClass;
  }

  public void setOrgClass(String orgClass) {
    this.orgClass = orgClass;
  }

  public Organization orgCorp(String orgCorp) {
    this.orgCorp = orgCorp;
    return this;
  }

   /**
   * 组织法人.
   * @return orgCorp
  **/
  @ApiModelProperty(value = "组织法人.")
  public String getOrgCorp() {
    return orgCorp;
  }

  public void setOrgCorp(String orgCorp) {
    this.orgCorp = orgCorp;
  }

  public Organization orgName(String orgName) {
    this.orgName = orgName;
    return this;
  }

   /**
   * 组织名称（也是客服端名称）.
   * @return orgName
  **/
  @ApiModelProperty(value = "组织名称（也是客服端名称）.")
  public String getOrgName() {
    return orgName;
  }

  public void setOrgName(String orgName) {
    this.orgName = orgName;
  }

  public Organization orgDescription(String orgDescription) {
    this.orgDescription = orgDescription;
    return this;
  }

   /**
   * 组织(客服端）描述.
   * @return orgDescription
  **/
  @ApiModelProperty(value = "组织(客服端）描述.")
  public String getOrgDescription() {
    return orgDescription;
  }

  public void setOrgDescription(String orgDescription) {
    this.orgDescription = orgDescription;
  }

  public Organization addressCode(String addressCode) {
    this.addressCode = addressCode;
    return this;
  }

   /**
   * 地址代码.
   * @return addressCode
  **/
  @ApiModelProperty(value = "地址代码.")
  public String getAddressCode() {
    return addressCode;
  }

  public void setAddressCode(String addressCode) {
    this.addressCode = addressCode;
  }

  public Organization addressDetail(String addressDetail) {
    this.addressDetail = addressDetail;
    return this;
  }

   /**
   * 地址详情.
   * @return addressDetail
  **/
  @ApiModelProperty(value = "地址详情.")
  public String getAddressDetail() {
    return addressDetail;
  }

  public void setAddressDetail(String addressDetail) {
    this.addressDetail = addressDetail;
  }

  public Organization createTime(Integer createTime) {
    this.createTime = createTime;
    return this;
  }

   /**
   * 创建时间.
   * @return createTime
  **/
  @ApiModelProperty(value = "创建时间.")
  public Integer getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Integer createTime) {
    this.createTime = createTime;
  }

  public Organization updateTime(Integer updateTime) {
    this.updateTime = updateTime;
    return this;
  }

   /**
   * 更新时间.
   * @return updateTime
  **/
  @ApiModelProperty(value = "更新时间.")
  public Integer getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Integer updateTime) {
    this.updateTime = updateTime;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Organization organization = (Organization) o;
    return Objects.equals(this.clientId, organization.clientId) &&
        Objects.equals(this.orgClass, organization.orgClass) &&
        Objects.equals(this.orgCorp, organization.orgCorp) &&
        Objects.equals(this.orgName, organization.orgName) &&
        Objects.equals(this.orgDescription, organization.orgDescription) &&
        Objects.equals(this.addressCode, organization.addressCode) &&
        Objects.equals(this.addressDetail, organization.addressDetail) &&
        Objects.equals(this.createTime, organization.createTime) &&
        Objects.equals(this.updateTime, organization.updateTime) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clientId, orgClass, orgCorp, orgName, orgDescription, addressCode, addressDetail, createTime, updateTime, super.hashCode());
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Organization {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    clientId: ").append(toIndentedString(clientId)).append("\n");
    sb.append("    orgClass: ").append(toIndentedString(orgClass)).append("\n");
    sb.append("    orgCorp: ").append(toIndentedString(orgCorp)).append("\n");
    sb.append("    orgName: ").append(toIndentedString(orgName)).append("\n");
    sb.append("    orgDescription: ").append(toIndentedString(orgDescription)).append("\n");
    sb.append("    addressCode: ").append(toIndentedString(addressCode)).append("\n");
    sb.append("    addressDetail: ").append(toIndentedString(addressDetail)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("    updateTime: ").append(toIndentedString(updateTime)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

